package com.tjh.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tjh.common.utils.PageUtils;
import com.tjh.gulimall.product.entity.BrandEntity;
import com.tjh.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * Create by koala on 2021-01-24 21:36:11
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //day21
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    //day22
    void updateBrand(Long brandId, String name);

    //day22
    void updateCategory(Long catId, String name);

    //day32
    List<BrandEntity> getBrandsByCatId(Long catId);
}

